<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>订单管理</title>
    <%@include file="../common/head.jsp" %>
</head>
<body>

<div id="header">
    <img class="logo_img" alt="" src="static/img/logo.png">
    <span class="wel_word">订单管理系统</span>
    <%@include file="../common/manager_menu.jsp" %>
</div>

<div id="main">
    <table>
        <tr>
            <td>日期</td>
            <td>金额</td>
            <td>详情</td>
            <td>发货</td>

        </tr>
        <c:forEach items="${requestScope.page.items}" var="order">
            <tr>
                <td>${order.createTime}</td>
                <td>${order.price}</td>
                <td><a href="/orderItem/info/${order.orderId}"/>查看详情</a> </td>
                <td><a href="/manager/fahuo/${order.orderId}/${requestScope.page.pageNo}/${requestScope.page.pageSize}"
                       id="status">
                    <c:choose>
                        <c:when test="${order.status==0}">
                            <c:out value="点击发货"/>
                        </c:when>
                        <c:when test="${order.status==1}">
                            <c:out value="已发货"/>
                        </c:when>
                    </c:choose>
                </a></td>
            </tr>
        </c:forEach>
    </table>
    <%@include file="../common/page_nav.jsp" %>
</div>
<%@include file="../common/footer.jsp" %>
</body>
</html>
